package simulation;

import java.util.ArrayList;
import java.util.List;

import operations.Operations;
import beans.Cell;

public class StartSimulating {
	private int numAgents;
	private List<Cell> locations;
	private Cell food;

	StartSimulating(int numAgents, Cell food, List<Cell> locations) {
		this.numAgents = numAgents;
		this.food = food;
		this.locations = locations;
	}

	StartSimulating(int numAgents, Cell food) {
		this.numAgents = numAgents;
		this.food = food;
		this.locations = new ArrayList<Cell>();
		for (int i = 0; i < numAgents; i++) {
			locations.add(Operations.getRandomCell());
		}
	}

	StartSimulating() {
		this.numAgents = 5;
		this.food = new Cell(90, 45);
		this.locations = new ArrayList<Cell>();
		locations.add(new Cell(90, 35));
		locations.add(new Cell(50, 5));
		locations.add(new Cell(35, 50));
		locations.add(new Cell(15, 18));
		locations.add(new Cell(85, 60));
	}

	public void startRelay() {
		new CreateAndShowGUI_relay(numAgents, food, locations);
	}

	public void startDirect() {
		new CreateAndShowGUI_direct(numAgents, food, locations);
	}

	public static void main(String[] args) {
		// new StartSimulating(5, new Cell(84, 52)).startRelay();
		// new StartSimulating(5, new Cell(84, 52)).startDirect();
		 new StartSimulating().startDirect();
		 // new StartSimulating().startRelay();

	}

}
